package com.snow.fvmusic.dao;

import com.snow.fvmusic.bo.CommentAndGreatParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author ：snow
 * @Date ：Created in 2020-10-21
 * @Description：
 * @Modified By：
 * @Version:
 */
@Mapper
public interface MessageDao {
    /**
     * 评论信息
     * @param userId
     * @param limit
     * @return
     */
    List<CommentAndGreatParam> getCommentMessage(@Param("userId") Long userId, @Param("limit") Integer limit);

    List<CommentAndGreatParam> getGreatMessage(@Param("userId") Long userId, @Param("limit") Integer limit);
}
